buildertool: Static analysis fixes
authorMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 11:36:19 +0000 (07:36 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 3 May 2021 11:44:38 +0000 (07:44 -0400)
tools/gtk-builder-tool-simplify.c

index 22e41a34d78c93fe0762ac2f9612d2cc882762c9..66c306013830ad64cea13fa9e6623ea471210a21 100644 (file)
@@ -1506,16 +1506,16 @@ rewrite_box (Element *element,
               if (orientation == GTK_ORIENTATION_HORIZONTAL)
                 {
                   if (expand)
-                    hexpand = write_box_prop (hexpand, object, "hexpand", "1");
+                    write_box_prop (hexpand, object, "hexpand", "1");
                   if (!fill)
-                    halign = write_box_prop (halign, object, "halign", "center");
+                    write_box_prop (halign, object, "halign", "center");
                 }
               else if (orientation == GTK_ORIENTATION_VERTICAL)
                 {
                   if (expand)
-                    vexpand = write_box_prop (vexpand, object, "vexpand", "1");
+                    write_box_prop (vexpand, object, "vexpand", "1");
                   if (!fill)
-                    valign = write_box_prop (valign, object, "valign", "center");
+                    write_box_prop (valign, object, "valign", "center");
                 }
 
               child->children = g_list_remove (child->children, packing);